Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to GHA #379

Merged
merged 26 commits into from
Oct 26, 2022
Merged

Migrate to GHA #379

merged 26 commits into from
Oct 26, 2022

Conversation

claire-labry
Copy link
Contributor

@claire-labry claire-labry commented Sep 20, 2022

This PR officially migrates go-getter to GHA from CircleCI. It's intention is to work the same as the CircleCI tests but in GHA format.

Note: After working on updating the AWS/GCP tests, it was concluded that the older go versions (1.14.15 and 1.15.3) were blocking the GCP tests from passing. The issue was that go1.17 is required for the dependent GCS libraries and we concluded that the removal of the older go versions was the logical path to move forward.

@claire-labry claire-labry marked this pull request as ready for review September 27, 2022 14:27
@claire-labry claire-labry requested a review from picatz September 27, 2022 14:27
@picatz
Copy link
Contributor

picatz commented Sep 27, 2022

Just to be clear, we will disable the CircleCI pipeline after this PR is merged? 🤔

@claire-labry
Copy link
Contributor Author

claire-labry commented Sep 27, 2022

Yes, that's the intention! We are fully migrating this repo to GHA as part of our efforts to move away from CircleCI. @picatz

@claire-labry
Copy link
Contributor Author

I'm going to defer to @dpowley for the first two comments on the s3 tests?

@picatz
Copy link
Contributor

picatz commented Sep 30, 2022

Importantly, there's the v2 branch of this repository that is used and maintained by @hashicorp/packer. We need to ensure they're also migrated to GHA.

Copy link
Contributor

@samsalisbury samsalisbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Claire, the caching seems to be broken atm, I left comments below... Other than that the CI bits all LGTM!

Co-authored-by: Sam Salisbury <samsalisbury@gmail.com>
@claire-labry
Copy link
Contributor Author

claire-labry commented Oct 4, 2022

@samsalisbury @picatz -- Could I please I get a re-review on this PR? The cache tests have been fixed -- @nywilken Would it be ok if we migrated v2 to GHA?

@nywilken
Copy link
Contributor

nywilken commented Oct 5, 2022

Thanks for the ping @claire-labry. The test cases in V2 are slightly different as the Getters now expect a Request type with the URL and destination. But I don't expect it to be a heavy lift as most tests are the same with the difference on how the URL is passed in. That said, how do you want to proceed in migrating V2 to GHA?

Are you okay with open the initial branch to add the actions that we can work together to address the failing tests. I've blocked some time to work on the Go-Getter PRs today at 3:45pm EST (my time). My only hesitation on adding the actions without your help would be that I don't have access to the appropriate accounts to test/debug.

To help with the initial commit of the action we can start with go-version testing for 1.17 and in #381 we can add 1.18 and 1.19 versions to the test matrix. There is a panic that gets fixed for 1.18 in #381. So the test will failed until that is merged. But I would rather get the testing in and green on 381 before merging. LMK.

@claire-labry
Copy link
Contributor Author

claire-labry commented Oct 26, 2022

@picatz would you be able to re-review this PR as I've added several things since your last review: this commit here -- we need to allow the file to be transported globally due to the CVE linked in the comment link to failure that led us to this fix. I also added comments (47ecbb0) to the GCS and S3 tests for external contributors on how they are able to run these tests. Once I have your final review and approval, I will merge this in.

claire-labry and others added 2 commits October 26, 2022 12:40
Co-authored-by: Kent 'picat' Gruber <kent@hashicorp.com>
Co-authored-by: Kent 'picat' Gruber <kent@hashicorp.com>
@claire-labry claire-labry merged commit 7220a3d into main Oct 26, 2022
renovate bot referenced this pull request in DelineaXPM/terraform-provider-dsv Jan 23, 2024
…ecurity] (#61)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/hashicorp/go-getter](https://togithub.com/hashicorp/go-getter)
| `v1.6.2` -> `v1.7.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fhashicorp%2fgo-getter/v1.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fhashicorp%2fgo-getter/v1.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fhashicorp%2fgo-getter/v1.6.2/v1.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fhashicorp%2fgo-getter/v1.6.2/v1.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

### GitHub Vulnerability Alerts

#### [CVE-2023-0475](https://nvd.nist.gov/vuln/detail/CVE-2023-0475)

HashiCorp go-getter up to 1.6.2 and 2.1.1 is vulnerable to decompression
bombs. Fixed in 1.7.0 and 2.2.0.

---

### Release Notes

<details>
<summary>hashicorp/go-getter (github.com/hashicorp/go-getter)</summary>

###
[`v1.7.0`](https://togithub.com/hashicorp/go-getter/releases/tag/v1.7.0)

[Compare
Source](https://togithub.com/hashicorp/go-getter/compare/v1.6.2...v1.7.0)

#### What's Changed

- docs: provide logging recommendations by
[@&#8203;mickael-hc](https://togithub.com/mickael-hc) in
[https://github.com/hashicorp/go-getter/pull/371](https://togithub.com/hashicorp/go-getter/pull/371)
- Update aws sdk version by [@&#8203;Jukie](https://togithub.com/Jukie)
in
[https://github.com/hashicorp/go-getter/pull/384](https://togithub.com/hashicorp/go-getter/pull/384)
- Update S3 URL in README by
[@&#8203;twelvelabs](https://togithub.com/twelvelabs) in
[https://github.com/hashicorp/go-getter/pull/378](https://togithub.com/hashicorp/go-getter/pull/378)
- Migrate to GHA by
[@&#8203;claire-labry](https://togithub.com/claire-labry) in
[https://github.com/hashicorp/go-getter/pull/379](https://togithub.com/hashicorp/go-getter/pull/379)
- \[COMPLIANCE] Update MPL 2.0 LICENSE by
[@&#8203;hashicorp-copywrite](https://togithub.com/hashicorp-copywrite)
in
[https://github.com/hashicorp/go-getter/pull/386](https://togithub.com/hashicorp/go-getter/pull/386)
- remove codesign entirely from go-getter by
[@&#8203;claire-labry](https://togithub.com/claire-labry) in
[https://github.com/hashicorp/go-getter/pull/408](https://togithub.com/hashicorp/go-getter/pull/408)
- Add decompression bomb mitigation options for v1 by
[@&#8203;picatz](https://togithub.com/picatz) in
[https://github.com/hashicorp/go-getter/pull/412](https://togithub.com/hashicorp/go-getter/pull/412)
- v1: decompressors: add LimitedDecompressors helper by
[@&#8203;shoenig](https://togithub.com/shoenig) in
[https://github.com/hashicorp/go-getter/pull/413](https://togithub.com/hashicorp/go-getter/pull/413)

#### New Contributors

- [@&#8203;mickael-hc](https://togithub.com/mickael-hc) made their first
contribution in
[https://github.com/hashicorp/go-getter/pull/371](https://togithub.com/hashicorp/go-getter/pull/371)
- [@&#8203;Jukie](https://togithub.com/Jukie) made their first
contribution in
[https://github.com/hashicorp/go-getter/pull/384](https://togithub.com/hashicorp/go-getter/pull/384)
- [@&#8203;twelvelabs](https://togithub.com/twelvelabs) made their first
contribution in
[https://github.com/hashicorp/go-getter/pull/378](https://togithub.com/hashicorp/go-getter/pull/378)
-
[@&#8203;hashicorp-copywrite](https://togithub.com/hashicorp-copywrite)
made their first contribution in
[https://github.com/hashicorp/go-getter/pull/386](https://togithub.com/hashicorp/go-getter/pull/386)

**Full Changelog**:
hashicorp/go-getter@v1.6.2...v1.7.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/DelineaXPM/terraform-provider-dsv).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants